<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>CDK Exporter</title>
<style type="text/css">
/* 
	Blue on blue
	written by Glenn Slaven http://slaven.net.au
*/
table,td,th {
	border-collapse:collapse;
	margin:0;
	padding:0;

}
table {
	border: none;
	font-family: Garamond, Georgia, "Times New Roman", Times, serif;
}

table caption {
	background-color: transparent;
	background-image: url(cap_bg.gif);
	background-repeat: repeat-x;
	background-position: bottom left;
	text-align:left;
	font-size:150%;
	text-transform:uppercase;
	line-height: 30px;
	letter-spacing:0px;	
}

td, th{	
	vertical-align:top;
	font-weight:normal;	
}

thead {
	border-left:1px solid #2293FF;	
}

thead th {
	background: #2293FF;
	color: #FFFFFF;
	font-size: 125%;
	border-top:1px solid #2293FF;
	border-right:1px solid #2293FF;
	padding: 4px 0.4em 4px 0.4em;	
}

tfoot td, tfoot th {
	border-top:1px solid #2293FF;
	border-right: none;
	font-weight: bolder;
	font-size: 110%;
	padding: 0.4em 0.5em 0.4em 0.5em;
}

tbody td, tbody th {
	background-color: #D9ECFF;
	border-right:1px solid #2293FF;
	font-size: 110%;
	padding: 0.4em 0.5em 0.4em 0.5em;
}

tbody tr.odd th, tbody tr.odd td{
	background-color: #BDDFFF;
}

tbody th{	
	font-weight: bold;	
	border-left:1px solid #2293FF
}

table a:link, table a:visited, table a:active {	
	color:#444F66;
	background-color: transparent;
	text-decoration: underline;
}

table a:hover {
	text-decoration:none;
	background-color: #1E90FF;
	color: #FFFFFF;
}
</style
</head>
<body>



<h1>A webapp to render chemical structures using the CDK.</h1>
<h4>Currently supported file types: jpeg, png, bmp, wbmp, gif, emf, pdf, svg, swf, ps, mol, smi, sdf<br/></h4>

<p>Source code available from <a href="http://code.google.com/p/cdk-export/">http://code.google.com/p/cdk-export/</a></p>

<table>
<caption>URL parameters:</caption>
<thead><th>Name</th><th>Description</th></thead>
<tbody>
<tr><th>structure</th><td>a molecule string, such as smiles, mol etc.</td></tr>
<tr><th>highlight</th><td>a molecule string, such as smiles, mol etc. Will be overlayed on the structure.</td></tr>
<tr><th>id</th><td>a PubChem CID or SID.</td></tr>
<tr><th>idtype</th><td>specifies whether id is a "cid" or "sid".</td></tr>
<tr><th>filename</th><td>a filename for the export (forces browser download of the file).</td></tr>
<tr><th>export</th><td>an export format string. Parameters are name:value pairs separated by a comma. For a list of supported parameters click <a href="?parameters=1">here</a>.</td></tr>
</tbody>
</table>

<br/>

<table>
<caption>Examples:</caption>
<thead>
	<tr>
		<th width=200px>Description</th>
		<th width=600px>Output</th>
	</tr>
</thead>
<tbody>
<tr class="odd">
	<th>Rosiglitazone (via smiles), displayed as 200x200 JPEG image, zoomed to fit.</th>
	<td height=210px><a href="?structure=CN(CCOC1=CC=C(C=C1)CC2C(=O)NC(=O)S2)C3=CC=CC=N3&export=format:jpg,width:200,height:200,ZoomToFit:true"><img src="?structure=CN(CCOC1=CC=C(C=C1)CC2C(=O)NC(=O)S2)C3=CC=CC=N3&export=format:png,width:200,height:200,ZoomToFit:true"/></a></td>
</tr>
<tr>
	<th>Molecule with substructure highlighted in green, displayed as 200x200 JPEG image, zoomed to fit.</th>
	<td height=210px><a href="?structure=Brc1c(NC2=NCCN2)ccc3nccnc13&highlight=C1=CC2=C(C=C1)N=CC=N2&export=format:jpg,width:200,height:200,ZoomToFit:true,ExternalHighlightColor:0-255-0"><img src="?structure=Brc1c(NC2=NCCN2)ccc3nccnc13&highlight=C1=CC2=C(C=C1)N=CC=N2&export=format:png,width:200,height:200,ZoomToFit:true,ExternalHighlightColor:0-255-0"/></a></td>
</tr>
<tr class="odd">
	<th>Fetch Caffeine molecule from PubChem Compound, display as 200x200 PNG image.</th>
	<td height=210px><a href="?id=2159&idtype=cid&export=format:png,width:200,height:200,ZoomToFit:false"><img src="?id=2159&idtype=cid&export=format:png,width:200,height:200,ZoomToFit:false"/></a></td>
</tr>
<tr>
	<th>Molecule converted to smiles.</th>
	<td><iframe width="600px" src=?structure=Brc1c(NC2=NCCN2)ccc3nccnc13&export=type:smi></iframe></td>
</tr>
<tr class="odd">
	<th>Molecule converted to an MDL Molfile.</th>
	<td><iframe width="600px" src=?structure=Brc1c(NC2=NCCN2)ccc3nccnc13&export=type:mol></iframe></td>
</tr>
</tbody>
</table>

</body>
</html>